﻿<!--
//===============================================================================
// Mammoth Patter Miner 2009
//===============================================================================
// Copyright (C) 2008-2009 Arkadiusz Świerczek and Piotr Włodek. All rights reserved.
//===============================================================================
// Defines user interface for the ModulesInfoView.
//===============================================================================
-->

<Window x:Class="WpfRcp.Views.Windows.ModulesInfoWindow" x:Name="m_Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Common="clr-namespace:WpfRcp.Core.Common;assembly=WpfRcp.Core"
        xmlns:Helpers="clr-namespace:WpfRcp.Helpers"
        xmlns:Behaviors="clr-namespace:WpfRcp.Controls.Behaviors;assembly=WpfRcp.Controls"
        xmlns:Regions="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation"
        xmlns:Globals="clr-namespace:WpfRcp.Core.Globals;assembly=WpfRcp.Core"
        Title="{Binding Source={x:Static Helpers:ResHelper.Instance}, Path=Resource[AboutDialogName]}"
        ResizeMode="NoResize" ShowInTaskbar="False" WindowStartupLocation="CenterScreen" Background="Transparent"
        SizeToContent="Height" Width="660" WindowStyle="None" AllowsTransparency="True" SnapsToDevicePixels="True"
        Behaviors:WindowBehavior.HideInsteadClose="True">

    <Window.Resources>
        <DataTemplate DataType="{x:Type Common:ModuleInfoItem}">
            <StackPanel Margin="10">                
                <TextBlock Margin="0,0,0,5" Text="{Binding Authors}" />
                <TextBlock Margin="0,0,0,15" Text="{Binding Description}"></TextBlock>
                <TextBlock Margin="0,0,0,5" Text="{Binding Name}"></TextBlock>
                <TextBlock Margin="0,0,0,5" Text="{Binding Version}"></TextBlock>
                <TextBlock Margin="0,0,0,5" Text="{Binding CopyrightNotice}"></TextBlock>
                <TextBlock Margin="0,0,0,0" Text="{Binding Rights}"></TextBlock>
                <Rectangle Height="1" Stroke="DarkGray" VerticalAlignment="Stretch" Margin="0,10,0,10" />
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    
    <Border BorderBrush="{StaticResource WindowBorder}" BorderThickness="1" CornerRadius="8">
        <Border.Background>
            <LinearGradientBrush EndPoint="0.455,0.996" StartPoint="0.457,0.038">
                <GradientStop Color="#FF070E18" Offset="0"/>
                <GradientStop Color="#FF8B96A3" Offset="1"/>
            </LinearGradientBrush>
        </Border.Background>

        <StackPanel>
            <TabControl x:Name="m_ModuleInfoRegion" Margin="10" Grid.Row="1" Grid.ColumnSpan="2" MinHeight="210"
                        SelectedIndex="0"
                        Style="{StaticResource OverlappingTabControlStyle}"
                        ItemContainerStyle="{StaticResource OverlappingTabItemStyle}"
                        Regions:RegionManager.RegionName="{x:Static Globals:RegionNames.ModulesInfoRegion}">
            </TabControl>
        </StackPanel>

    </Border>
</Window>
